package com.quz.jn_travel.service.impi;

import com.quz.jn_travel.mapper.QRecommendMapper;
import com.quz.jn_travel.pojo.VO.QRecommendTravel;
import com.quz.jn_travel.service.RecommendService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RecommendServiceImpi implements RecommendService {

    @Resource
    QRecommendMapper qRecommendMapper;

    @Override
    public List<QRecommendTravel> getRecommend() {
        List<QRecommendTravel> recommends = qRecommendMapper.qGetShowRecommend();
        return recommends;
    }

    @Override
    public List<QRecommendTravel> getRecommendDetail() {
        List<QRecommendTravel> recommends = qRecommendMapper.qGetShowRecommendDetail();
        return recommends;
    }
}
